<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout :: head(~{ :: title}, ~{ :: link}, ~{ ::script},~{::style})">
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>商户平台</title>


    <style></style>
    <link rel="stylesheet" th:href="@{/plugins/jquery-treegrid/css/jquery.treegrid.css}"/>
    <script th:src="@{/plugins/jquery-treegrid/js/jquery.treegrid.js}"></script>
    <script th:src="@{/plugins/jquery-treegrid/js/jquery.treegrid.bootstrap3.js}"></script>

<script th:inline="javascript">
    $(function(){
        $("#table").treegrid();
    });
</script>
</head>
<body th:replace="layout::body(~{this::section})">
<section class="content-wrapper">
    <section class="content-header">
        <h1>
            哈哈哈
            <small>Control panel</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li class="active">Dashboard</li>
        </ol>
    </section>
    <section class="content">
        <table id="table" class="table tree">
            <thead>
            <tr>
                <td>标题</td>
                <td>内容</td>
            </tr>
            </thead>
            <tbody>
            <tr class="treegrid-1">
                <td>Root node 1</td><td>Additional info</td>
            </tr>
            <tr class="treegrid-2 treegrid-parent-1">
                <td>Node 1-1</td><td>Additional info</td>
            </tr>
            <tr class="treegrid-3 treegrid-parent-1">
                <td>Node 1-2</td><td>Additional info</td>
            </tr>
            <tr class="treegrid-4 treegrid-parent-3">
                <td>Node 1-2-1</td><td>Additional info</td>
            </tr>
            <tr class="treegrid-5">
                <td>Root node 2</td><td>Additional info</td>
            </tr>
            <tr class="treegrid-6 treegrid-parent-5">
                <td>Node 2-1</td><td>Additional info</td>
            </tr>
            <tr class="treegrid-7 treegrid-parent-5">
                <td>Node 2-2</td><td>Additional info</td>
            </tr>
            <tr class="treegrid-8 treegrid-parent-7">
                <td>Node 2-2-1</td><td>Additional info</td>
            </tr>
            </tbody>
        </table>
    </section>
</section>
</body>
</html>